Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix error message for zero leader connection. #4709

Merged
merged 2 commits into from Feb 11, 2020

Conversation

danielmai
Copy link
Contributor

@danielmai danielmai commented Jan 31, 2020

This error message is about a connection to the Zero leader, not just any Zero server. This PR clarifies the returned error message to state that.


This change is Reviewable

@danielmai danielmai requested review from manishrjain and a team as code owners January 31, 2020 23:02
Copy link
Contributor

@martinmr martinmr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Just one minor comment.

Reviewed 1 of 1 files at r1.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @danielmai and @manishrjain)


worker/groups.go, line 283 at r1 (raw file):

	p := g.Leader(0)
	if p == nil {
		return errors.Errorf("Don't have the address of any dgraph zero leader")

error messages should start with lowercase to follow golang's convention.

Copy link
Contributor

@MichelDiz MichelDiz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewed 1 of 1 files at r2.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @danielmai and @manishrjain)

Copy link
Contributor

@prashant-shahi prashant-shahi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewed 1 of 1 files at r2.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @danielmai and @manishrjain)

@martinmr martinmr merged commit 79d27d3 into master Feb 11, 2020
@martinmr martinmr deleted the danielmai/fix-error-message branch February 11, 2020 19:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants